package com.dingding.web.company.action;

import java.util.List;

import javax.annotation.Resource;

import com.dingding.facade.commonservice.common.dto.company.ReqGetCompanyListDTO;
import com.dingding.facade.commonservice.common.dto.company.ResGetCompanyListDTO;
import com.dingding.facade.commonservice.facade.company.ICompanyFacade;
import com.dingding.web.base.action.BaseAction;

/**
 * 
 * @ClassName: CompanyAction
 * @Description: TODO
 * @author hufan
 * @date 2016年12月3日 下午5:03:51
 *
 */
public class CompanyAction extends BaseAction {

	private static final long serialVersionUID = -6023342115650684185L;

	@Resource(name = "companyFacade")
	private ICompanyFacade companyFacade;

	/**
	 * @Description:上传认证车主图片
	 * @author hufan
	 * @since 2.5.7
	 */
	public String getCompanyList() {

		ReqGetCompanyListDTO reqGetCompanyListDTO = new ReqGetCompanyListDTO();
		reqGetCompanyListDTO.setCityId(getPara("cityId") == null ? null : Integer.valueOf(getPara("cityId")));

		List<ResGetCompanyListDTO> result = companyFacade.getCompanyListDTOs(reqGetCompanyListDTO);

		super.write(getResJsonp(result));
		return NONE;
	}

}
